How do I stop infinite loop? [closed]
Posted
by
SystemNetworks
on Game Development
See other posts from Game Development
or by SystemNetworks
Published on 2012-09-29T11:31:46Z
Indexed on
2012/09/29
21:51 UTC
Read the original article
Hit count: 123
As you see, I have a stack overflow error. I wanted to use a class (goldArmor.java) which has all its own stuffs and uses some booleans, int, double from my main class(play.java). Now I want to call my other class(goldArmor.java) to my main class(play.java). When I press run, it says stackoverflow. How do I fix it?
For My goldArmor.java: Play playI = new Play();
This is what I tried:
Created another class(connect) to connect from my sub-class to my play.class: goldArmor goldArm = new goldArmor();
THen in my play.java: connect con = new connect();
© Game Development or respective owner